package fr.upstlse.glre.client.utilitaires;

import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import jxl.Workbook;
import jxl.demo.XML;
import jxl.read.biff.BiffException;

import org.apache.commons.fileupload.FileItem;

import fr.upstlse.glre.business.ServiceLocator;
import fr.upstlse.glre.business.service.depot.DocumentService;
import fr.upstlse.glre.business.vo.depot.DocumentVO;

public class UtilGWT {
	
	public static String getTaille(String pTaille) {
		String lRes = "";

//		if (pTaille.length() == 6) {
//			// kilo
//			long lNewTaille = (new Long(pTaille).longValue()) / 1000;
//			lRes = lNewTaille + " ko";
//		} else if (pTaille.length() == 9) {
//			// mo
//			long lNewTaille = (new Long(pTaille).longValue()) / 1000000;
//			lRes = lNewTaille + " mo";
//		} else {
//			lRes = pTaille + " octets";
//		}

		return lRes;
	}
	
	
}
